const crypto = require("crypto");
const secret = "abc";

const content = "654321"; // 6b15708bf7cf7c2259b66f5a3797076b11688307fce478c8afd0f9ae5e451ffb
// const content = "123456"; // 25eab476e7eb3ad282161b3aa8c03a63263cb9dacf6470ab1fa8dfc73f939481

const miwen = crypto.createHmac("sha256", secret).update(content).digest("hex");
console.log("miwen", miwen);
console.log("miwen", miwen.length);
